
# README for replication materials for Goet, Niels D., “The Politics of Procedural Choice: Regulating Legislative Debate in the UK House of Commons, 1811-2015.”

This README file describes the contents of each folder in the replication data repository.

# SETUP AND BENCHMARKS
## OS
Original code run on MAC OSX 10.14, 16gb RAM, 1 cpu (2.5GHz), 4 cores.

## Benchmarks
Estimates of run times for the scripts to produce the results of the main analyses and of the supplementary materials are outlined below. 

All scripts listed below are called and executed through a single script (`runReplication.R`, see details below). This script also installs all dependencies, provided you uncomment the relevant lines at the start of the script. 

### Main analysis
Run time per script (in order of replication): 

* `runReplication.R`: 5 minutes 

# R SCRIPTS
The R scripts is optimised to run in RStudio.

Dependencies:

* ggplot2
* bcp
* strucchange
* foreign
* optimx
* lme4
* grid
* stargazer
* spduration
* survival

# Replication process
Prior to running the replication process, please unzip all folders. The folder structure needs to be maintained for the replication process to be successful. The complete replication (of figures and tables) can be achieved by running the `runReplication.R`
script. 


# FOLDERS

## figures
All generated figures are saved to this folder. 

## models
All generated regression tables are saved to this folder.

## data
Contains the data required to run the replication (`UKHCSOdat.csv`)

## customFunctions
Contains custom R functions to generate plots and analyses. These functions are dependencies for `runReplication.R`.

